<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateFreightsTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('freights', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('shop_id')->default(0)->nullable()->comment("shop_id");
            $table->string('name', 191)->nullable()->comment("模版名称");
            $table->integer('type')->default(1)->nullable()->comment("计费方式1按件数2按数量");
            $table->integer('status')->default(1)->nullable()->comment("1正常");
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('freights');
    }
}
